home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-26 | 1.2 KB | 45 lines | [TEXT/GEOL] |
- Item 2606148 21-June-89 08:55
-
- From: D0420 Satori SW, Hugh Rogovy, PRT
-
- To: X0357 Contractrol LTD T/A Microspot,R.C.
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: R/W TDocument Files
-
- Alastair,
-
- Since nobody answered your first link, I'll give it a shot...
-
- If you want Read/Write access to a TDocument file data fork you need to do both
- of the following:
-
- First in IDocument you should pass kDataOpen(TRUE) and kUsesDataFork(TRUE) for
- the usesDataFork and keepsDataOpen parameters respectively.
-
- Second, after calling IDocument you need to set the fDataPerm field to
- fsRdWrPerm.
-
- Here is a short fragment...
-
-
-
-
- NEW(aDoc);FailNil(aDoc);
- aDoc.IDocument(kFileType, kSignature, kUsesDataFork,NOT kUsesRsrcFork,
- kDataOpen,NOT kRsrcOpen); {use and keep open the data fork}
- aDoc. fDataPerm := fsRdWrPerm; {give the file R/W permission}
-
-
-
-
- You can use the same concept as far as the resource fork goes, also...
-
- I hope this helps....
-
-
- Chris Le Croy
- Satori Software
-
-